package com.oreilly.ez.entity;


import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * 学习记录
 */
@Data
@Entity
@Table(name = "attendance")
@ToString
public class Attendance  extends BaseEntity {


  // new field...
    @ManyToOne
    @JoinColumn(name = "study_id")
    private Study study;

    @ManyToOne
    @JoinColumn(name = "student_id")
    private Enrollment enrollment;

    @ManyToOne
    @JoinColumn(name = "teach_id")
    private Teacher teacher;



}
